package timbap.visualizer.api.context.messaging;

import timbap.visualizer.api.model.TimeCode;

/**
 * The <code>TimeCodeListener</code> interface is the base
 * interface for all classes listening to a time code.
 *
 * @author  Andreas Pabst
 * @see timbap.visualizer.api.model.TimeCode
 * @see timbap.visualizer.api.context.messaging.TimeCodePublisher
 */
public interface TimeCodeListener {
    
    /**
     * handles an update of the time code, the object
     * is listening to.
     * This method is called by the respesctive time code
     * publisher whenever the time code has changed.
     * 
     * @param pTimeCode	the updated time code
     */
    public void timeCodeUpdated(TimeCode pTimeCode);

}
